/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Prototype;
import java.util.HashMap;

/**
 *
 * @author Jenny Patrick
 */
public class GuitarraPrototype {
    private HashMap<String, Guitarra>prototipos = new HashMap<String, Guitarra>();
    
    public GuitarraPrototype(){
        Acustica acu = new Acustica("Folk", 12, "Negro", 300000, "Nylon");
        Electrica elec = new Electrica("Ibanez", 6, "Rojo", 150000, 100000);
        
        
        prototipos.put("Acustica",acu);
        prototipos.put("Electrica", elec);
    }
    
    public Object prototipo(String tipo)throws CloneNotSupportedException{
        return prototipos.get(tipo).clone();
    }
}
